package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IAttendFragmentContract;
import com.clouddot.baipai.contract.ITableFragmentContract;
import com.clouddot.baipai.model.AttendFragmentModel;
import com.clouddot.baipai.model.TableFragmentModel;
import com.clouddot.baipai.presenter.AttendFragmentPresenter;
import com.clouddot.baipai.presenter.TableFragmentPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class TableFragmentModule {

    private ITableFragmentContract.IView mView;

    public TableFragmentModule(ITableFragmentContract.IView view) {
        mView = view;
    }

    @Provides
    public ITableFragmentContract.IPresenter providerPresenter() {
        return new TableFragmentPresenter(mView, new TableFragmentModel(mView.getContext()));
    }
}
